package com.jt.ktdemo.ui.mian

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.jt.ktdemo.R

class DetectionFragment : Fragment() {

    private lateinit var rlModule: RecyclerView


    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        var view = inflaterView(inflater, container)
        if (view != null) {
            initView(view)
        }
        return view
    }

    private fun inflaterView(inflater: LayoutInflater, container: ViewGroup?): View? {
        return inflater.inflate(R.layout.fragment_detection, container, false)
    }

    private fun initView(view: View) {
        rlModule = view.findViewById(R.id.rlModule)
        var manager = LinearLayoutManager(activity)
        rlModule.layoutManager = manager

    }

}